public function insert($Question_body,$course_ID,$student_id )                         Class LAyer
{
   $Query ="INSERT INTO project.question(course_ID,Question_body,student_ID) 
   VALUES('$course_ID','$Question_body','$student_id')";
  if (!mysql_query($Query))
  {
      die('Error: ' . mysql_error());
  }
}
_______________________________________________________________________
$id=$_POST['ID']; 
$Ask=new question;                                                        Logic LAyer
$Ask->course_ID = $_POST['course_ID'];
$Ask->student_id=$_POST['ID'];
$Ask->Question_body=$_POST['ASK'];
$Ask->insert($Ask->Question_body,$Ask->course_ID,$Ask->student_id);